/**
 * 
 */
package com.orcwar.engine;

import com.orcwar.enums.OWItemType;

/**
 * @author Callil
 * 
 */
public abstract class OWItem  {

	private int stacks = 1;

	private OWItemType type;

	/**
	 * Registers everything so the item will be used by the unit.
	 * 
	 * @param unit
	 *            The unit equipping the item.
	 */
	public abstract void onEquip(OWUnit unit);

	public int getStacks() {
		return stacks;
	}

	public void setStacks(int stacks) {
		this.stacks = stacks;
	}

	public OWItemType getType() {
		return type;
	}

	public void setType(OWItemType type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "[" + type + ":" + stacks + "]";
	}

}
